package com.medical.medical.filter;

import javax.servlet.*;
import java.io.IOException;

/**
 * @authorDesc
 * @create 2022/8/25 11:48
 * @ClassName LoginFilter
 * @Author YU
 * @description 登录拦截
 */
public class LoginFilter implements Filter {


    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
        System.out.println("过滤器初始化...");
    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("拦截到目标....");
    }

    @Override
    public void destroy() {
        System.out.println("过滤器被销毁....");
    }
}
